#include "SockOpt.h"

int SockOpt::shutdown(socket_t sockfd)
{
    #ifdef WIN32
    return ::shutdown(sockfd,SD_SEND);
    #else
    return ::shutdown(sockfd, SHUT_WR);
    #endif
}

int SockOpt::close(socket_t sockfd)
{
#ifdef WIN32
    return ::closesocket(sockfd);
#else
    return ::close(sockfd);
#endif
}
